<?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/header', TEMPLATE_INCLUDEPATH)) : (include template('common/header', TEMPLATE_INCLUDEPATH));?>
<div class="panel panel-success">
  		<div class="panel-heading">主站信息设置</div>
	</div>
	<form action="" method="post" class="form-horizontal form">
		<div class="panel panel-default">
		
			<div class="panel-body">
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">标题</label>
				<div class="col-sm-9 col-xs-12">
		             <input type="text" class="form-control span7" name="title" value="<?php  echo $info['title'];?>">
		        </div>
				
			</div>	
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">Logo</label>
				<div class="col-sm-9 col-xs-12">
		            <?php  echo tpl_form_field_image('logo',$info['logo']);?>
		        </div>
				
			</div>	
				
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">主页描述</label>
				<div class="col-sm-9 col-xs-12">
					<textarea id="remark" name="index_intro" class="form-control">
					<?php  echo $info['index_intro'];?> 
					</textarea> 
					<span class="help-block">开始吹牛上面的引导语</span>
				</div>
			</div>
			<div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"><span style='color:red'>*</span>规则设置</label>
		        <div class="col-sm-9 col-xs-12">
			        <textarea id="remark2" name="rules" class="form-control">
					<?php  echo $info['rules'];?> 
					</textarea>
		        </div>
		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"><span style='color:red'>*</span>Tips</label>
		        <div class="col-sm-9 col-xs-12">
			         <textarea id="remark1" name="tips" class="form-control">
					<?php  echo $info['tips'];?> 
					</textarea>
					 <span class="help-block">游戏结束输入手机号下面的文字提示或赞助信息</span>
		        </div>

		    </div>
		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"><span style='color:red'>*</span>游戏时间</label>
		        <div class="col-xs-offset-1 input-group col-sm-2 col-xs-4">
		            <input type="number" class="form-control span7" name="counttime" value="<?php  echo $info['counttime'];?>"><div class="input-group-addon">秒</div>
		        </div>
		    </div>

			<div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"><span style='color:red'>*</span>奖励物品</label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" class="form-control span7" name="goods" value="<?php  echo $info['goods'];?>">
		        </div>
		    </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"><span style='color:red'>*</span>分享标题</label>
		        <div class="col-sm-9 col-xs-12">
		            <input type="text" id="share_title" class="form-control span7" placeholder="" name="share_title" value="<?php  echo $info['share_title'];?>">
		        </div>
		    </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"><span style='color:red'>*</span>分享图标</label>
		        <div class="col-sm-9 col-xs-12">
		            <?php  echo tpl_form_field_image('share_icon',$info['share_icon']);?>
		        </div>
		    </div>

		    <div class="form-group">
		        <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"><span style='color:red'>*</span>分享描述</label>
		        <div class="col-sm-9 col-xs-12">
			        <textarea style="height: 60px;" name="share_content" class="form-control span7" cols="60"><?php  echo $info['share_content'];?></textarea>
		        </div>
		    </div>
		   
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
				<div class="col-sm-4">
				<input type="hidden" name="token" value="<?php  echo $_W['token'];?>" />
				<input name="submit" type="submit" value="提交" class="btn btn-primary span3" />
					
				</div>
			</div>
			
			</div>
		</div>
	</form>

<script>
require(['jquery','util'], function($, util){
	$(function(){
		var editor = util.editor($('#remark')[0]);
 		var editor = util.editor($('#remark1')[0]);
 		var editor = util.editor($('#remark2')[0]);
	});
});
</script>
<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>